package com.ruibang.glass.produce.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.teaming.cloud.framework2.common.tools.LocalDateStringConverter;
import com.teaming.cloud.framework2.common.tools.LocalDateTimeStringConverter;

import java.time.LocalDateTime;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 生产-理化-物料特性
 * </p>
 *
 * @author songJinKang
 * @since 2024-03-12
 */

@ApiModel(value = "生产-理化-物料特性")
@TableName("g_produce_material_characteristics")
@Data
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER, verticalAlignment = VerticalAlignmentEnum.CENTER)
public class MaterialCharacteristics extends BaseEntity {
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ExcelIgnore
    private String id;
    @ApiModelProperty(value = "mainId")
    @ColumnWidth(14)
    @ExcelProperty(value = {"MAIN_ID"}, index = 0)
    private String mainId;
    @ApiModelProperty(value = "取样时间")
    @ColumnWidth(18)
    @ExcelProperty(value = {"取样时间"}, index = 1, converter = LocalDateTimeStringConverter.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime sampleTime;
    @ApiModelProperty(value = "550nm单点透过率")
    @ColumnWidth(10)
    @ExcelProperty(value = {"550nm单点透过率"}, index = 2)
    private Double f1;
    @ApiModelProperty(value = "密度(g/cm3)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"密度(g/cm3)"}, index = 3)
    private Double f2;
    @ApiModelProperty(value = "软化温度（℃）")
    @ColumnWidth(10)
    @ExcelProperty(value = {"软化温度（℃）"}, index = 4)
    private Double f3;
    @ApiModelProperty(value = "退火点（℃）")
    @ColumnWidth(10)
    @ExcelProperty(value = {"退火点（℃）"}, index = 5)
    private Double f4;
    @ApiModelProperty(value = "应变点（℃）")
    @ColumnWidth(10)
    @ExcelProperty(value = {"应变点（℃）"}, index = 6)
    private Double f5;
    @ApiModelProperty(value = "备注")
    @ColumnWidth(10)
    @ExcelProperty(value = {"备注"}, index = 7)
    private String remark;
    @ApiModelProperty(value = "检测人")
    @ColumnWidth(10)
    @ExcelProperty(value = {"检测人"}, index = 8)
    private String checkBy;
    @ApiModelProperty(value = "检测人用户ID")
    @ExcelIgnore
    private String checkById;
    @ApiModelProperty(value = "审核人")
    @ColumnWidth(10)
    @ExcelProperty(value = {"审核人"}, index = 9)
    private String auditBy;
    @ApiModelProperty(value = "审核人用户ID")
    @ExcelIgnore
    private String auditById;
    @ApiModelProperty(value = "测试人")
    @ColumnWidth(10)
    @ExcelProperty(value = {"测试人"}, index = 10)
    private String testBy;
    @ApiModelProperty(value = "测试人")
    @ExcelIgnore
    private String testById;
    @ApiModelProperty(value = "测试人用户名称")
    @ExcelIgnore
    private String createUserName;
    @ApiModelProperty(value = "测试人用户ID")
    @ExcelIgnore
    private String createUserId;
    @ApiModelProperty(value = "是否删除：1：是 0：否")
    @TableLogic
    @ExcelIgnore
    private String isDelete;
}
